///////////////////////////////////////////////////////////
//  Worker.cpp
//  Implementation of the Class Worker
//  Created on:      25-Out-2010 12:04:20
//  Original author: Eva
///////////////////////////////////////////////////////////

#include "Worker.h"


Worker::Worker(){

}

Worker::Worker(string name, const Address &address, const Date &birthDate, unsigned int phone,Code code, Schedule schedule, float salary):Person(name,address,birthDate,phone) {
	setEmployeeCode(code);setSchedule()schedule;setSalary(salary);
}

Worker::~Worker(){

}

const Code Worker::getEmployeeCode(){

	return  employeeCode;
}

void Worker::setEmployeeCode(Code code){
	this->employeeCode = employeeCode;
}

Schedule Worker::getSchedule(){
	return  schedule;
}

void Worker::setSchedule(Schedule schedule){
	this -> schedule = schedule;
}


float Worker::getSalary(){
	return salary;
}


void Worker::setSalary(float salary){
	this->salary = salary ;
}